import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import getters from './getters'

Vue.use(Vuex)

const state = {
	showLeft:false, // 显示菜单栏
	isDay: localStorage.getItem('isDay')==2?true:false, //当前白天
	latitude: '', // 当前位置纬度
	longitude: '', // 当前位置经度

}

export default new Vuex.Store({
	state,
	getters,
	actions,
	mutations,
})
